import java.util.Scanner;

public class Training02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入直角三角形的底边长:");
        double base = scanner.nextDouble();

        System.out.println("请输入直角三角形的高:");
        double height = scanner.nextDouble();

        double area = calculateArea(base,height);
        System.out.println("三角形的面积是："+ area);

    }
    public static double calculateArea(double base,double height){
        return 0.5* base *height;
    }
}
